* Step 1: MI WORST_CASE(?,O(n^2))
    + Considered Problem:
        - Strict TRS:
            f(0()) -> true()
            f(1()) -> false()
            f(s(x)) -> f(x)
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        MI {miKind = MaximalMatrix (UpperTriangular (Multiplicity Nothing)), miDimension = 1, miUArgs = UArgs, miURules = URules, miSelector = Just any strict-rules}
    + Details:
        We apply a matrix interpretation of kind MaximalMatrix (UpperTriangular (Multiplicity Nothing)):
        
        The following argument positions are considered usable:
          uargs(g) = {2},
          uargs(if) = {1}
        
        Following symbols are considered usable:
          all
        TcT has computed the following interpretation:
              p(0) = [1]                              
              p(1) = [0]                              
              p(c) = [1] x_1 + [1]                    
              p(f) = [0]                              
          p(false) = [0]                              
              p(g) = [1] x_2 + [1]                    
             p(if) = [8] x_1 + [4] x_2 + [4] x_3 + [1]
              p(s) = [0]                              
           p(true) = [0]                              
        
        Following rules are strictly oriented:
        if(false(),x,y) = [4] x + [4] y + [1]
                        > [1] y + [0]        
                        = y                  
        
         if(true(),x,y) = [4] x + [4] y + [1]
                        > [1] x + [0]        
                        = x                  
        
        
        Following rules are (at-least) weakly oriented:
              f(0()) =  [0]               
                     >= [0]               
                     =  true()            
        
              f(1()) =  [0]               
                     >= [0]               
                     =  false()           
        
             f(s(x)) =  [0]               
                     >= [0]               
                     =  f(x)              
        
           g(x,c(y)) =  [1] y + [2]       
                     >= [1] y + [2]       
                     =  g(x,g(s(c(y)),y)) 
        
        g(s(x),s(y)) =  [1]               
                     >= [1]               
                     =  if(f(x),s(x),s(y))
        
* Step 2: WeightGap WORST_CASE(?,O(n^2))
    + Considered Problem:
        - Strict TRS:
            f(0()) -> true()
            f(1()) -> false()
            f(s(x)) -> f(x)
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
        - Weak TRS:
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(g) = {2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                p(0) = [2]                            
                p(1) = [0]                            
                p(c) = [1] x1 + [1]                   
                p(f) = [2]                            
            p(false) = [8]                            
                p(g) = [1] x2 + [10]                  
               p(if) = [1] x1 + [2] x2 + [4] x3 + [11]
                p(s) = [0]                            
             p(true) = [1]                            
          
          Following rules are strictly oriented:
          f(0()) = [2]   
                 > [1]   
                 = true()
          
          
          Following rules are (at-least) weakly oriented:
                   f(1()) =  [2]                 
                          >= [8]                 
                          =  false()             
          
                  f(s(x)) =  [2]                 
                          >= [2]                 
                          =  f(x)                
          
                g(x,c(y)) =  [1] y + [11]        
                          >= [1] y + [20]        
                          =  g(x,g(s(c(y)),y))   
          
             g(s(x),s(y)) =  [10]                
                          >= [13]                
                          =  if(f(x),s(x),s(y))  
          
          if(false(),x,y) =  [2] x + [4] y + [19]
                          >= [1] y + [0]         
                          =  y                   
          
           if(true(),x,y) =  [2] x + [4] y + [12]
                          >= [1] x + [0]         
                          =  x                   
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 3: WeightGap WORST_CASE(?,O(n^2))
    + Considered Problem:
        - Strict TRS:
            f(1()) -> false()
            f(s(x)) -> f(x)
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
        - Weak TRS:
            f(0()) -> true()
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(g) = {2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                p(0) = [0]                           
                p(1) = [0]                           
                p(c) = [1] x1 + [8]                  
                p(f) = [5]                           
            p(false) = [4]                           
                p(g) = [1] x1 + [1] x2 + [4]         
               p(if) = [1] x1 + [1] x2 + [2] x3 + [1]
                p(s) = [8]                           
             p(true) = [3]                           
          
          Following rules are strictly oriented:
          f(1()) = [5]    
                 > [4]    
                 = false()
          
          
          Following rules are (at-least) weakly oriented:
                   f(0()) =  [5]                 
                          >= [3]                 
                          =  true()              
          
                  f(s(x)) =  [5]                 
                          >= [5]                 
                          =  f(x)                
          
                g(x,c(y)) =  [1] x + [1] y + [12]
                          >= [1] x + [1] y + [16]
                          =  g(x,g(s(c(y)),y))   
          
             g(s(x),s(y)) =  [20]                
                          >= [30]                
                          =  if(f(x),s(x),s(y))  
          
          if(false(),x,y) =  [1] x + [2] y + [5] 
                          >= [1] y + [0]         
                          =  y                   
          
           if(true(),x,y) =  [1] x + [2] y + [4] 
                          >= [1] x + [0]         
                          =  x                   
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 4: MI WORST_CASE(?,O(n^2))
    + Considered Problem:
        - Strict TRS:
            f(s(x)) -> f(x)
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
        - Weak TRS:
            f(0()) -> true()
            f(1()) -> false()
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        MI {miKind = MaximalMatrix (UpperTriangular (Multiplicity Nothing)), miDimension = 1, miUArgs = UArgs, miURules = URules, miSelector = Just any strict-rules}
    + Details:
        We apply a matrix interpretation of kind MaximalMatrix (UpperTriangular (Multiplicity Nothing)):
        
        The following argument positions are considered usable:
          uargs(g) = {2},
          uargs(if) = {1}
        
        Following symbols are considered usable:
          all
        TcT has computed the following interpretation:
              p(0) = [1]                              
              p(1) = [2]                              
              p(c) = [1] x_1 + [14]                   
              p(f) = [1]                              
          p(false) = [0]                              
              p(g) = [1] x_2 + [12]                   
             p(if) = [8] x_1 + [4] x_2 + [1] x_3 + [0]
              p(s) = [1]                              
           p(true) = [0]                              
        
        Following rules are strictly oriented:
        g(x,c(y)) = [1] y + [26]     
                  > [1] y + [24]     
                  = g(x,g(s(c(y)),y))
        
        
        Following rules are (at-least) weakly oriented:
                 f(0()) =  [1]                
                        >= [0]                
                        =  true()             
        
                 f(1()) =  [1]                
                        >= [0]                
                        =  false()            
        
                f(s(x)) =  [1]                
                        >= [1]                
                        =  f(x)               
        
           g(s(x),s(y)) =  [13]               
                        >= [13]               
                        =  if(f(x),s(x),s(y)) 
        
        if(false(),x,y) =  [4] x + [1] y + [0]
                        >= [1] y + [0]        
                        =  y                  
        
         if(true(),x,y) =  [4] x + [1] y + [0]
                        >= [1] x + [0]        
                        =  x                  
        
* Step 5: MI WORST_CASE(?,O(n^2))
    + Considered Problem:
        - Strict TRS:
            f(s(x)) -> f(x)
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
        - Weak TRS:
            f(0()) -> true()
            f(1()) -> false()
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        MI {miKind = MaximalMatrix (UpperTriangular (Multiplicity Nothing)), miDimension = 1, miUArgs = UArgs, miURules = URules, miSelector = Just any strict-rules}
    + Details:
        We apply a matrix interpretation of kind MaximalMatrix (UpperTriangular (Multiplicity Nothing)):
        
        The following argument positions are considered usable:
          uargs(g) = {2},
          uargs(if) = {1}
        
        Following symbols are considered usable:
          all
        TcT has computed the following interpretation:
              p(0) = [8]                              
              p(1) = [0]                              
              p(c) = [1] x_1 + [14]                   
              p(f) = [0]                              
          p(false) = [0]                              
              p(g) = [2] x_1 + [1] x_2 + [10]         
             p(if) = [1] x_1 + [1] x_2 + [4] x_3 + [0]
              p(s) = [2]                              
           p(true) = [0]                              
        
        Following rules are strictly oriented:
        g(s(x),s(y)) = [16]              
                     > [10]              
                     = if(f(x),s(x),s(y))
        
        
        Following rules are (at-least) weakly oriented:
                 f(0()) =  [0]                 
                        >= [0]                 
                        =  true()              
        
                 f(1()) =  [0]                 
                        >= [0]                 
                        =  false()             
        
                f(s(x)) =  [0]                 
                        >= [0]                 
                        =  f(x)                
        
              g(x,c(y)) =  [2] x + [1] y + [24]
                        >= [2] x + [1] y + [24]
                        =  g(x,g(s(c(y)),y))   
        
        if(false(),x,y) =  [1] x + [4] y + [0] 
                        >= [1] y + [0]         
                        =  y                   
        
         if(true(),x,y) =  [1] x + [4] y + [0] 
                        >= [1] x + [0]         
                        =  x                   
        
* Step 6: MI WORST_CASE(?,O(n^2))
    + Considered Problem:
        - Strict TRS:
            f(s(x)) -> f(x)
        - Weak TRS:
            f(0()) -> true()
            f(1()) -> false()
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        MI {miKind = MaximalMatrix (UpperTriangular (Multiplicity Nothing)), miDimension = 2, miUArgs = UArgs, miURules = URules, miSelector = Just any strict-rules}
    + Details:
        We apply a matrix interpretation of kind MaximalMatrix (UpperTriangular (Multiplicity Nothing)):
        
        The following argument positions are considered usable:
          uargs(g) = {2},
          uargs(if) = {1}
        
        Following symbols are considered usable:
          all
        TcT has computed the following interpretation:
              p(0) = [2]                                    
                     [2]                                    
              p(1) = [0]                                    
                     [1]                                    
              p(c) = [1 0] x_1 + [2]                        
                     [0 0]       [0]                        
              p(f) = [0 2] x_1 + [0]                        
                     [0 1]       [2]                        
          p(false) = [2]                                    
                     [3]                                    
              p(g) = [3 0] x_1 + [1 0] x_2 + [0]            
                     [4 3]       [4 0]       [2]            
             p(if) = [2 0] x_1 + [1 0] x_2 + [1 0] x_3 + [0]
                     [4 1]       [0 1]       [0 2]       [0]
              p(s) = [0 2] x_1 + [0]                        
                     [0 1]       [4]                        
           p(true) = [2]                                    
                     [0]                                    
        
        Following rules are strictly oriented:
        f(s(x)) = [0 2] x + [8]
                  [0 1]     [6]
                > [0 2] x + [0]
                  [0 1]     [2]
                = f(x)         
        
        
        Following rules are (at-least) weakly oriented:
                 f(0()) =  [4]                      
                           [4]                      
                        >= [2]                      
                           [0]                      
                        =  true()                   
        
                 f(1()) =  [2]                      
                           [3]                      
                        >= [2]                      
                           [3]                      
                        =  false()                  
        
              g(x,c(y)) =  [3 0] x + [1 0] y + [2]  
                           [4 3]     [4 0]     [10] 
                        >= [3 0] x + [1 0] y + [0]  
                           [4 3]     [4 0]     [2]  
                        =  g(x,g(s(c(y)),y))        
        
           g(s(x),s(y)) =  [0  6] x + [0 2] y + [0] 
                           [0 11]     [0 8]     [14]
                        >= [0  6] x + [0 2] y + [0] 
                           [0 10]     [0 2]     [14]
                        =  if(f(x),s(x),s(y))       
        
        if(false(),x,y) =  [1 0] x + [1 0] y + [4]  
                           [0 1]     [0 2]     [11] 
                        >= [1 0] y + [0]            
                           [0 1]     [0]            
                        =  y                        
        
         if(true(),x,y) =  [1 0] x + [1 0] y + [4]  
                           [0 1]     [0 2]     [8]  
                        >= [1 0] x + [0]            
                           [0 1]     [0]            
                        =  x                        
        
* Step 7: EmptyProcessor WORST_CASE(?,O(1))
    + Considered Problem:
        - Weak TRS:
            f(0()) -> true()
            f(1()) -> false()
            f(s(x)) -> f(x)
            g(x,c(y)) -> g(x,g(s(c(y)),y))
            g(s(x),s(y)) -> if(f(x),s(x),s(y))
            if(false(),x,y) -> y
            if(true(),x,y) -> x
        - Signature:
            {f/1,g/2,if/3} / {0/0,1/0,c/1,false/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {f,g,if} and constructors {0,1,c,false,s,true}
    + Applied Processor:
        EmptyProcessor
    + Details:
        The problem is already closed. The intended complexity is O(1).

WORST_CASE(?,O(n^2))